PDF4Java Reference Documentation
com.o2sol.pdf4java.core Package / PDFFile Class / isPDFFileOwnerPassword Method
Stream that contains the PDF file.
Password to verify.
In This Topic
    isPDFFileOwnerPassword Method
    In This Topic
    Verifies if the password matches the owner password set on the PDF file.
    Syntax
    public static boolean isPDFFileOwnerPassword( 
       Stream stream,
       java.lang.String password
    )

    Parameters

    stream
    Stream that contains the PDF file.
    password
    Password to verify.

    Return Value

    True if the password is the owner password, false if the password is not the owner password or the file is not encrypted.
    See Also